package org.ssm.dao;

import org.springframework.stereotype.Repository;
import org.ssm.pojo.Ebook;

import java.util.List;

@Repository("ebookMapper")
public interface EbookMapper {
    int save(Ebook ebook);
    int update(Ebook ebook);
    Ebook getOneEbook(int id);

    int getRecordCount(Ebook ebook);
    List<Ebook> getEbookListByPage(Ebook ebook);
    List<Ebook> getTopEbookList();

    int delete(int id);
    int deleteAll(String[] ids);
}

